﻿<extend name="Public:base" />
<block name="body">
<style type="text/css">
 .input-group {
    /* position: relative; */
    display: table;
    border-collapse: separate;
    width: 200px;
}   

</style>
<!--引入弹窗插件-->
<include file="Public:artdialog" />

 <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home home-icon"></i>
                <span style="color:#428bca">{$parent_nav.name}</span>
                </li>
                <li class="active">{$one_nav.name}</li>
            </ul><!-- .breadcrumb -->
        </div>
    <style type="text/css">
        .page-content {
            padding: 0px 24px 24px;
        }

        .porlets-content_title {
            height: 49px;
            background: #b6d1f2;
        }
        .col-md-12 .icon-table{
            color: #FFFFFF;
            font-size: 18px;
            font-weight: bolder;
            line-height: 49px;
        }
    </style>
<div class="page-content">

    <form action="{:U('DirectionalPurchase/DirectionalPurchaseList')}" method="post" id="searchForm">
    <div class="row">
        <div class="col-md-12">
            <div class="block-web">
        <div class="row" style="background: #e9f0f9;height: 100%;padding:15px 0">
            <div>
               <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control" id="title" type="text" name="title" placeholder="请输入搜索条件单号\源订单号" size="15">
                    </div>
                    </div>
<!--                <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control" id="consignee" type="text" name="consignee" placeholder="请输入收货人">
                    </div>
                    </div> -->
<!--                 <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control" id="mobile" type="text" name="mobile" placeholder="请输入手机号码" >
                    </div>
                    </div>  -->    
               <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control date-picker" id="start_time" type="text" name="start_time" data-date-format="dd-mm-yyyy" size="15">
                        <span class="input-group-addon">
                            <i class="icon-calendar bigger-110"></i>
                        </span>
                    </div>
                    </div>

                    <div class="form-group" style="float: left;">
                            <div class=" input-group  col-sm-3">
                                        <!-- <input name="end_time" readonly="readonly" class="laydate-icon" type="text" id="end_time"  size="15"> -->
                                        <input class="form-control date-picker" id="end_time" name="end_time" type="text" data-date-format="dd-mm-yyyy" size="15">
                                      <span class="input-group-addon">
                                        <i class="icon-calendar bigger-110"></i>
                                    </span>
                            </div>
                          
                        </div>
    
                 <button type="button" class="btn btn-sm btn-info"  onclick="load()"> 搜索</button>
                 <button type="button" class="btn btn-sm btn-info" onclick="$('input[type=text]').val(['']);$('select').val('');load();"> 查看所有</button>
                 <!-- <button type="button" class="btn btn-info" onclick="export_excel()"> 导出EXCEL</button> -->
            </div>
            </div>
                           <div class="porlets-content" style="margin: 0 -12px !important;">
                    <div class="porlets-content_title">
                        <div class="row" >
                            <div class="col-md-12 icon-table">{$one_nav.name}</div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <div id="order_list_item_content">
                            <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                <img src="__PUBLIC__/admin/images/load3.gif" />
                                加载中...
                            </div>
                        </div>
                    </div><!--/table-responsive-->
            </div><!--/block-web-->
        </div><!--/col-md-12-->
    </div>
</form>
</div>
</div>
<script type="text/javascript" src="__PUBLIC__/laydate/laydate.dev.js"></script>
<script type="text/javascript">

    laydate({
        elem: '#end_time ',
        festival: true, //显示节日
        istime: true,
        // min: laydate.now(),
        start: laydate.now(0,"YYYY/MM/DD hh:mm:ss"),  //设置开始时间为当前时间
        format: 'YYYY-MM-DD hh:mm:ss'
    })
        laydate({
        elem: '#start_time ',
        festival: true, //显示节日
        // min: laydate.now(),
        start: laydate.now(0,"YYYY/MM/DD hh:mm:ss "),  //设置开始时间为当前时间
        istime: true,
        format: 'YYYY-MM-DD hh:mm:ss'
    })

    $(function(){
        goSearch("#searchForm","order_list_item_content");
      $(document).keydown(function(event){ 
        if(event.keyCode==13){ 
        load(); 
        } 
    })
    });

    function load(){
        goSearch("#searchForm","order_list_item_content");
    }

    function toParentChilder(id){
        $('#parent_id').val(id);
        goSearch("#searchForm","order_list_item_content");
    }

function clock_load_dialog(){
   setTimeout(function(){
    var win=    art.dialog.opener;
                win.load();
                top.art.dialog().close();
    },800);
}

function _es_openDilog90(url, title,id){ 
     art.dialog.open(url, { title: title, width: '1200px', height: '90%', opacity: 0.2, id: id, fixed: true, close:function(){load();}  });
}


    function delete_ok(id){
        art.dialog({
            content: "确定要删除吗？",
            icon: 'question',
            lock: true,
            opacity: 0.2,
            id:'dele',
            ok: function () {
                var url="{:U('Nav/delete_admin_ok')}";
                $.ajax({
                    'url':url,
                    'data':{id:id},
                    'dataType':'json',
                    'type':'post',
                    success:function(data){
                        goSearch("#searchForm","order_list_item_content");
                        //_reload_currentpage_datalist('order_list_item_content');
                        // goSearch("#searchForm","order_list_item_content");
                        var retstatus = data.status == 1 ? "1" : "0";
                        showvfmsg(retstatus, data.info, 1900);

                    },error:function(){
                        showvfmsg('error','请求服务器失败',2000);
                    },complete:function(){

                    }
                });


            },
            cancelVal: '取消',
            cancel: true
        });
    }
</script>
</block>
